﻿using System.Collections.Generic;
using SanJ.FreeCare.Localization;
using SanJ.FreeCare.Notifications;
using Volo.Abp.Emailing.Localization;
using Volo.Abp.Localization;
using Volo.Abp.Settings;

namespace Abp.Notifications
{
    public class NotificationSettingProvider : SettingDefinitionProvider
    {
        public override void Define(ISettingDefinitionContext context)
        {
            context.Add(new SettingDefinition(
                NotificationSettingNames.ReceiveNotifications, 
                "True", L("ReceiveNotifications"), L("ReceiveNotifications"), true)
                );


        }

        //public override IEnumerable<SettingDefinition> GetSettingDefinitions(SettingDefinitionProviderContext context)
        //{
        //    return new[]
        //    {
        //        new SettingDefinition(
        //            NotificationSettingNames.ReceiveNotifications,
        //            "true",
        //            L("ReceiveNotifications"),
        //            scopes: SettingScopes.User,
        //            clientVisibilityProvider: new VisibleSettingClientVisibilityProvider())
        //    };
        //}


        private static LocalizableString L(string name)
        {
            return LocalizableString.Create<FreeCareResource>(name);
        }

        
    }
}
